package top.csjss.hospital.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import top.csjss.hospital.serializer.Integer2BooleanJsonSerializer;

/**
 * @Author ztf
 * @Date 10:58 2021/10/19
 **/
public class LayUIDTreeVO {
    /**
     * 标识
     */
    private Integer id;
    /**
     *展示标题
     */
    private String title;
    /**
     * 指定父节点标识
     */
    private Integer parentId;
    /**
     *true - 展开，false - 收起  。。
     */
    @JsonSerialize(using = Integer2BooleanJsonSerializer.class)
    private Integer spread;
    /**
     *1-勾选、2-不勾选
     */
    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    private String checkArr;

    @Override
    public String toString() {
        return "LayUIDTreeVO{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", parentId=" + parentId +
                ", spread=" + spread +
                ", checkArr='" + checkArr + '\'' +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public Integer getSpread() {
        return spread;
    }

    public void setSpread(Integer spread) {
        this.spread = spread;
    }

    public String getCheckArr() {
        return checkArr;
    }

    public void setCheckArr(String checkArr) {
        this.checkArr = checkArr;
    }

    public LayUIDTreeVO(Integer id, String title, Integer parentId, Integer spread, String checkArr) {
        this.id = id;
        this.title = title;
        this.parentId = parentId;
        this.spread = spread;
        this.checkArr = checkArr;
    }

    public LayUIDTreeVO() {
    }
}
